package On_class.L0420.book;

/**
 * 标准类/实体类（JavaBean）:
 * 1、成员变量(私有属性)
 * 2、构造方法
 * 3、成员方法(setter/getter方法)
 */
public class Books {
    private int id;
    private String name;
    private double price;
    private int number;
    private String press;

    public Books() {
    }

    public Books(int id, String name, double price, int number, String press) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.number = number;
        this.press = press;
    }

    @Override
    public String toString() {
        return "Books{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", number=" + number +
                ", press='" + press + '\'' +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public String getPress() {
        return press;
    }

    public void setPress(String press) {
        this.press = press;
    }
}
